//
//  HHPlayerProtocol.swift
//  HHSwift
//
//  Created by 华宏 on 2020/9/7.
//  Copyright © 2020 huahong. All rights reserved.
//

import Foundation

protocol HHPlayerProtocol {
  
    /// URL
    var assetURL:URL! { get set }
     
     /// 是否自动播放，默认YES
     var shouldAutoPlay:Bool { get set }
     
     var isPreparedToPlay:Bool { get set }
     
     /// 播放速率
     var rate:Float { get set }
         
    
     /// 准备播放
     func prepareToPlay()
     

     ///播放
     func play()

     /// 重新加载播放器
     func reloadPlayer()
     

     ///暂停
     func pause()

     ///停止
     func stop()

     /// 重新播放
     func replay()
    
}
